package com.zd.kids.DataBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: com.zd.kids.DataBean
 * @Description:
 * @Author: hyy
 * @Date: 2020/6/27
 * @Time: 10:15 PM
 */
public class TestWordDataBean {

    /**
     * group_status : true
     * category_status : true
     * question_name : 我是誰
     * result : [{"title":"你好","pinyin":"nǐ hǎo","pinyin_grammar":"ni3 hao3","newwordid":1,"time":4},{"title":"我","pinyin":"wǒ","pinyin_grammar":"wo3","newwordid":2,"time":4},{"title":"名字","pinyin":"míng zì","pinyin_grammar":"ming2 zi4","newwordid":3,"time":4},{"title":"叫","pinyin":"jiào","pinyin_grammar":"jiao4","newwordid":4,"time":4},{"title":"歲","pinyin":"suì","pinyin_grammar":"sui4","newwordid":5,"time":4}]
     */

    private boolean group_status;
    private boolean category_status;
    private String question_name;
    private List<TestTrainDataBean> result;

    public boolean isGroup_status() {
        return group_status;
    }

    public void setGroup_status(boolean group_status) {
        this.group_status = group_status;
    }

    public boolean isCategory_status() {
        return category_status;
    }

    public void setCategory_status(boolean category_status) {
        this.category_status = category_status;
    }

    public String getQuestion_name() {
        return question_name;
    }

    public void setQuestion_name(String question_name) {
        this.question_name = question_name;
    }

    public List<TestTrainDataBean> getResult() {

        if(result==null){
            result=new ArrayList<>();
        }
        for (TestTrainDataBean testTrainDataBean : result) {
            testTrainDataBean.setQuestionName(getQuestion_name());
        }
        return result;
    }

    public void setResult(List<TestTrainDataBean> result) {
        this.result = result;
    }

}
